﻿
using Natural.Attributes;
using Natural.Helpers;
namespace Natural.Providers
{ 
    public sealed class Encryptor 
    {
        public static string Encrypt(string source, string sharedSecret)
        {
            return Manager.Encrypt(source, sharedSecret);
        }
        public static string Decrypt(string source, string sharedSecret)
        {
            return Manager.Decrypt(source, sharedSecret);
        }

        private static IEncryptor Manager
        {
            get { return Solver.Solve("Encryptor") as IEncryptor; }
        }
    }
}
